package com.jiangyg.mall.product.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 类描述：sku信息
 *
 * @author jiangyg
 * @email email@jiangyg.com
 * @date 2021-10-18 22:25:28
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode
@TableName("mp_sku_info")
public class SkuInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * skuId
     */
    @TableId(type = IdType.ASSIGN_ID)
    @TableField("id")
    private Long id;

    /**
     * sku名称
     */
    @TableField("name")
    private String name;

    /**
     * 标题
     */
    @TableField("title")
    private String title;

    /**
     * 副标题
     */
    @TableField("subtitle")
    private String subtitle;

    /**
     * 价格
     */
    @TableField("price")
    private BigDecimal price;

    /**
     * 销量
     */
    @TableField("sales")
    private Long sales;

    /**
     * sku介绍描述
     */
    @TableField("desct")
    private String desct;

    /**
     * 所属分类id
     */
    @TableField("category_id")
    private Long categoryId;

    /**
     * 品牌id
     */
    @TableField("brand_id")
    private Long brandId;

    /**
     * spuId
     */
    @TableField("spu_id")
    private Long spuId;

    /**
     * 默认图片地址
     */
    @TableField("default_image")
    private String defaultImage;

    /**
     * 上架状态[0 - 下架，1 - 上架]
     */
    @TableField("published")
    private Integer published;

}
